package com.candy.test;

import java.io.File;
import java.io.FilenameFilter;

/**
 * @author donglin
 * @Title:
 * @类名: MyFile
 * @date 2020/5/26
 */
public class MyFile implements FilenameFilter {
    @Override
    public boolean accept(File dir, String name) {
        if(name.endsWith(".mp4")){
            return true;
        }else {
            return false;
        }

    }
}
